<?php
/*
 * Created on 14.04.2007
 * @filesource: toolbar.extensionicons.html.php
 * @author: Nikolai Plath
 */

//defined( '_VALID_MOS' ) or die( 'Direct Access to this script is not allowed');
defined( '_JEXEC' ) or die( 'Restricted access' );

class menuExtensionicons
{
	function list_menu() {
		JToolBarHelper::title( JText::_( 'ExtensionIcons OneFive' ), 'addedit.png' );

//        mosMenuBar::startTable();
//        mosMenuBar::publish('publish');
//        mosMenuBar::unpublish('unpublish');
		JToolBarHelper::publishList();
		JToolBarHelper::unpublishList();
				JToolBarHelper::addNew();
				JToolBarHelper::editList();
		JToolBarHelper::deleteList();
		//JToolBarHelper::spacer();
		JToolBarHelper::divider();
/*
        mosMenuBar::spacer();
        mosMenuBar::divider();
        mosMenuBar::spacer();
        mosMenuBar::addNew('new');
        mosMenuBar::editList('edit');
        mosMenuBar::deleteList('', 'delete');
        mosMenuBar::spacer();
        mosMenuBar::divider();
        mosMenuBar::spacer();
        mosMenuBar::custom ('exiconRefresh', 'reload_f2.png', 'reload_f2.png', _EXICONS_TOOLBAR_REFRESH, false);
*/
		JToolBarHelper::custom( 'exiconRefresh', 'archive.png', 'archive_f2.png', JText::_('REFRESH'), false );
		JToolBarHelper::custom( 'help', 'help.png', 'default.png', JText::_('HELP'), false );
		JToolBarHelper::custom( 'MediaManager', 'move.png', 'archive_f2.png', JText::_('MEDIA'), false );
		JToolBarHelper::custom( 'ConfigModule', 'config.png', 'archive_f2.png', JText::_('MODULE'), false );
/*
        mosMenuBar::spacer();
        mosMenuBar::divider();
        mosMenuBar::spacer();
        mosMenuBar::custom ('help', 'help_f2.png', 'help_f2.png', _EXICONS_TOOLBAR_HELPME, false);
        mosMenuBar::spacer();
        mosMenuBar::divider();
        mosMenuBar::divider();
        mosMenuBar::divider();
        mosMenuBar::spacer();
        mosMenuBar::custom ('MediaManager', 'folder_add_f2.png', 'folder_add_f2.png', _EXICONS_TOOLBAR_MEDIA, false);
        mosMenuBar::spacer();
        mosMenuBar::divider();
        mosMenuBar::spacer();
        mosMenuBar::custom ('ConfigModule', 'themes_f2.png', 'themes_f2.png', _EXICONS_TOOLBAR_MODULE, false);
        mosMenuBar::endTable();
*/
        }

    function edit_menu() {
    	
    	$cid = JRequest::getVar( 'cid', array(0), '', 'array' );
		$cid = intval($cid[0]);

		$text = ( $cid ? JText::_( 'Edit' ) : JText::_( 'New' ) );

		JToolBarHelper::title( JText::_( 'ExtensionIcon' ).': <small><small>[ '. $text.' ]</small></small>', 'addedit.png' );
    	
    	
    	JToolBarHelper::save();
    			if ( $cid ) {
			// for existing articles the button is renamed `close`
			JToolBarHelper::cancel( 'cancel', 'Close' );
		} else {
			JToolBarHelper::cancel();
		}
/*

        mosMenuBar::startTable();
        mosMenuBar::back();
        mosMenuBar::save('save');
        mosMenuBar::endTable();
*/
		}

	function help_menu ()
	{
		mosMenuBar::startTable();
        mosMenuBar::back();
        mosMenuBar::endTable();
	}
	function WrapMediaManager_menu ()
	{
		mosMenuBar::startTable();
        mosMenuBar::back();
        mosMenuBar::endTable();
	}

}//class

?>
